package top.syfy.api.jdcloud.joke.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 分页数据
 *
 * @author awg
 * @date 2020/10/30 星期五
 */
public class PageDO<T> implements Serializable {

    private static final long serialVersionUID = -4274564399362206953L;

    /**
     * 总记录数
     */
    private Long allNum;

    /**
     * 总页数
     */
    private Long allPages;

    /**
     * 每一页返回的最大结果集
     */
    private Long maxResult;

    /**
     * 当前页
     */
    private Long currentPage;

    /**
     * 上一页
     */
    private Long prePage;

    /**
     * 下一页
     */
    private Long nextPage;

    /**
     * 进行分页的数据对象
     */
    private List<T> t;

    public PageDO() {
    }

    public Long getAllNum() {
        return allNum;
    }

    public void setAllNum(Long allNum) {
        this.allNum = allNum;
    }

    public Long getAllPages() {
        return allPages;
    }

    public void setAllPages(Long allPages) {
        this.allPages = allPages;
    }

    public Long getMaxResult() {
        return maxResult;
    }

    public void setMaxResult(Long maxResult) {
        this.maxResult = maxResult;
    }

    public Long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Long currentPage) {
        this.currentPage = currentPage;
    }

    public Long getPrePage() {
        return prePage;
    }

    public void setPrePage(Long prePage) {
        this.prePage = prePage;
    }

    public Long getNextPage() {
        return nextPage;
    }

    public void setNextPage(Long nextPage) {
        this.nextPage = nextPage;
    }

    public List<T> getT() {
        return t;
    }

    public void setT(List<T> obj) {
        this.t = obj;
    }
}
